<template>
  <div id="app">
    <app-header :title="title"></app-header>

    <!-- 
      传值：String、number、boolean
      传引用：object、array
    -->
    <users :users="users"></users>
    <users :users="users"></users>

    <app-footer :title="title"></app-footer>
  </div>
</template>

<script>
import Users from "./components/Users";
import Header from "./components/Header";
import Footer from "./components/Footer";

export default {
  name: "App",
  components: {
    Users,
    "app-header": Header,
    "app-footer": Footer
  },
  data() {
    return {
      users: [
        { name: "Henry", position: "Web开发", show: true },
        { name: "Bucky", position: "Java开发", show: true },
        { name: "Luffy", position: "海贼王", show: true },
        { name: "Yaso", position: "风一样的男子", show: true },
        { name: "Yaso", position: "风一样的男子", show: true },
        { name: "Yaso", position: "风一样的男子", show: true },
        { name: "Yaso", position: "风一样的男子", show: true }
      ],
      title: "传值"
    };
  }
};
</script>

<style scoped>
#app {
  font-family: "Avenir", Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  /* text-align: center; */
  color: #2c3e50;
  /* margin-top: 60px; */
}
</style>
